package com.xbongbong.pro.dataset.exception;

import lombok.Getter;
/**
 * @author  gzt
 * @Description
 * @Date 19:55 2022/10/11
 **/

public enum ErrorCode {

    SUCCESS("E0000", "success"),
    SQL_ERROR("E0001", "node sql is null"),
    DATA_BIND_ERROR("E0003", "data bind error"),
    PARAMETER_ERROR("E0004", "params error"),
    MESSAGE_NOT_READABLE_ERROR("E0005", "invalid json format"),
    HTTP_REQUEST_IS_NULL("E0006", "appid参数为空");


    @Getter
    private final String code;

    @Getter
    private final String message;

    ErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

}
